<?php

 


require_once 'PHPUnit/Util/Filter.php';

PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT');



class PHPUnit_Util_FilterIterator extends FilterIterator
{
    
    private $suffix;

    
    public function __construct(Iterator $iterator, $suffix = 'Test.php')
    {
        parent::__construct($iterator);
        $this->suffix = $suffix;
    }

    
    public function accept()
    {
        return substr($this->getInnerIterator()->current(), -1 * strlen($this->suffix)) == $this->suffix;
    }
}
?>
